import request from '../utils/request';

export const getCustomerData = () => {
    return request.get("/api/getCustomerData");
}

export const getCopartnerData = () => {
    return request.get("/api/getCopartnerData");
}

export const getProvincialData = (data) => {
    return request.post("/api/queryProvincialData", data, {
        headers: {
            contentType: "application/json"
        }
    });
}

export const getActivityData = () => {
    return request.get("/api/getActivityData");
}

export const queryActivityData = (province) => {
    const formData = new FormData();
    formData.append("province", province);
    return request.post("/api/queryActivityData", formData);
}

export const getCityactivity = () => {
    return request.get("/api/getCityactivity");
}

export const getAreaactivity = () => {
    return request.get("/api/getAreaactivity");
}